package com.xiaolin.springbootdemo.service.impl;

import com.github.pagehelper.PageHelper;
import com.xiaolin.springbootdemo.dao.PpDocumentDao;
import com.xiaolin.springbootdemo.dto.PpDocumentQueryParam;
import com.xiaolin.springbootdemo.model.PpDocument;
import com.xiaolin.springbootdemo.service.PpDocumentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName PpDocumentServiceImpl
 * @Description 描述
 * @Detail detail
 * @Author MyPC
 * @Date 2021/1/10
 * @Version 1.0
 */
@Service
public class PpDocumentServiceImpl implements PpDocumentService {
    @Autowired
    private PpDocumentDao ppDocumentDao;

    @Override
    public List<PpDocument> queryList(PpDocumentQueryParam param, Integer pageNum, Integer pageSize) {
        PageHelper.startPage(pageNum,pageSize);
        return ppDocumentDao.queryList(param);
    }
}
